package com.yunsom.testdemo.design.decorator;

/**
 * @author Xbao
 * @description
 * @date 2022/6/6 15:31
 */
public abstract class ShapeDecorator implements Shape{

  protected Shape shape;

  public ShapeDecorator(Shape shape) {
    this.shape = shape;
  }

  @Override
  public void draw() {
    shape.draw();
  }
}
